package com.demo.mapper;

import com.demo.dto.UserDto;
import com.demo.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(String username);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String username);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User select(User user);

    UserDto selectDto(User user);

    int pageCount(User user);

    List<User> pageByCond(
            @Param("user") User user,
            @Param("pageNo") int pageNo,
            @Param("pageSize") int pageSize);
}